* {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  &::before, &::after {
    box-sizing: inherit;
  }
}

html {
  font-size: calc(100vw / (750 / 32));
}

@media screen and (max-width: 320px) {
  html{
    /* 最小字体 */
    font-size: 16px;
  }
}

@media screen and (min-width: 540px) {
  html {
    /* 最大字体32 */
    font-size: 32px;
  }
}

html {
  font-family: "Microsoft Yahei,SimSun,Helvetica";
  box-sizing: border-box;
  color: #333;
  height: 100%;
}

body {
  height: 100%;
  margin: 0 auto;
  transform: translate(0, 0);
}

ol, ul {
  list-style: none;
}

img, button {
  border-style: none;
}

.img_wrap {
  position: relative;
  display: flex;
  align-items: center;
  &::before {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    background-color: transparent;
  }
  img {
    max-width: 100%;
    height: auto;
  }
}

a, input, button {
  text-decoration: none;
  outline: none;
}

/* ios input样式清除 */
input,
textarea {
  font-size: 24px;
  border: 0;
  outline: none;
  -webkit-appearance: none;
  background-color: transparent;
}

input[disabled], input:disabled, input.disabled {
  color: #3e3e3e;
  -webkit-text-fill-color: #3e3e3e;
  -webkit-opacity: 1;
  opacity: 1;
}

/* number样式清除 */
input[type=number] {
  -moz-appearance:textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ios和android下触摸元素时出现半透明灰色遮罩 */
a {
  -webkit-tap-highlight-color:rgba(255,255,255,0);
}

/* PC端滚动条样式 */
@media screen and (min-width: 540px) {
  ::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-track {
    background-color: #ddd;
  }
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

/*清除浮动*/
.clearfix:：after {
  content: '';
  display: block;
  clear: both;
  visibility:hidden;
  height: 0;
  line-height: 0;
}
